<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户列表</title>
</head>
<script src="//unpkg.com/vue/dist/vue.js"></script>
<link rel="stylesheet"
	href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" />
<link rel="stylesheet"
	href="./resources/css/sweetalert2.css" />
<script src="//unpkg.com/element-ui/lib/index.js"></script>
<script src="./resources/js/jquery.min.js"></script>
<script src="./resources/js/sweetalert2.min.js"></script>
<body>
<div id="mainApp">
  <el-container style="padding-top:20px;">
	  <el-header style="heighe:10px;">
		  <el-row :gutter="24">
			<el-col :span="8" :xs="8" :sm="8" :md="8" :lg="8">
				<el-breadcrumb class="breadcrumb-inner">
					<el-breadcrumb-item><h2>用户管理</h2></el-breadcrumb-item>
				</el-breadcrumb>
			</el-col>
		  </el-row>
	  </el-header>
	  <el-main>
	  	  <el-card calss="box-card">
	  	  	<el-row :gutter="24">
		  		<el-col :span="8" :xs="8" :sm="8" :md="8" :lg="8">
		  			<span><h4>流程列表</h4></span>
		  		</el-col>
		  	</el-row>
		  </el-card>
		  <el-card>
		  	<form name="uploadForm" id="uploadForm" method="post" enctype="multipart/form-data" 
				action="appro/uploadworkflow">
				<p style="margin:10px 0;">上传流程信息: &nbsp;&nbsp;
					<input type="file" name="uploadfile" id="fileupload" value="选择" />
					<input type="submit" id="fileSubmit" name="Submit" value="上传" />
				</p> 
			</form>
		  </el-card>
		  <el-card calss="box-card" style="margin-top:20px">
			  <el-row style="overflow-x:hidden;">
		  		<template>
				  <el-table :data="tableData" style="width:980%;margin:15px auto">
				    <el-table-column prop="id" label="用户名" >
				    </el-table-column>
				    <el-table-column prop="deploymentId" label="姓名" >
				    </el-table-column>
				     <el-table-column prop="name" label="姓名" >
				    </el-table-column>
				     <el-table-column prop="resourceName" label="姓名" >
				    </el-table-column>
				     <el-table-column prop="key" label="姓名" >
				    </el-table-column>
				     <el-table-column prop="diagramresourcename" label="姓名" >
				    </el-table-column>
				  </el-table>
			  	</template>
			  </el-row>
		  </el-card>
	  </el-main>
  </el-container>
</div>
</body>
<script>
new Vue({
		el:"#mainApp",
	    data:{
	    	tableData: [],
	    },
	    mounted:function(){
	    	this.processList();
	    },
	    methods: {
		  processList(depCode){
			  var _this = this;
			  $.get("appro/queryProcessDefinition", function(data) {
				  console.log(data);
				  _this.tableData = data;
	    	  });
		  }
	    }
	  });
</script>
</html>